﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.Test {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_earthNail", DisableSyncStructure = true)]
	public partial class TEarthNail {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty]
		public int? Alarm { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		[JsonProperty, Column(Name = "deviceType")]
		public int? DeviceType { get; set; }

		[JsonProperty]
		public bool? IsCharge { get; set; }

		[JsonProperty]
		public bool? IsVibrate { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Latitude { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Longitude { get; set; }

		[JsonProperty, Column(Name = "NB_No", StringLength = -2)]
		public string NBNo { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Power { get; set; }

		[JsonProperty]
		public int? Sign { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,1)")]
		public decimal? Temp { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string VersionNo { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Voltage { get; set; }

		[JsonProperty]
		public bool? WebStatus { get; set; }

		[JsonProperty]
		public int? WorkContinuousTime { get; set; }

		[JsonProperty]
		public int? WorkTime { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? X { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Y { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Z { get; set; }

	}

}
